from os import path

import nonebot
import config

def main():
    nonebot.init(config)
    #nonebot.load_builtin_plugins()
    nonebot.load_plugins(
        path.join(path.dirname(__file__), 'modules', 'fetcher'),
        'modules.fetcher'
    )
    nonebot.run(host='127.0.0.1', port=8080)

if __name__ == '__main__':
    main()